home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / devel / tcl / tclx7_31.z / tclx7_31 / tcldev / tclX7.3a-p1 / tests / compat.test < prev    next >
Encoding:
Text File  |  1994-01-23  |  1.2 KB  |  35 lines

  1. #
  2. # compat.test
  3. #
  4. # Tests Tcl library compatiblity routines.
  5. #---------------------------------------------------------------------------
  6. # Copyright 1992-1993 Karl Lehenbauer and Mark Diekhans.
  7. #
  8. # Permission to use, copy, modify, and distribute this software and its
  9. # documentation for any purpose and without fee is hereby granted, provided
  10. # that the above copyright notice appear in all copies.  Karl Lehenbauer and
  11. # Mark Diekhans make no representations about the suitability of this
  12. # software for any purpose.  It is provided "as is" without express or
  13. # implied warranty.
  14. #------------------------------------------------------------------------------
  15. # $Id: compat.test,v 3.0 1993/11/19 06:57:07 markd Rel $
  16. #------------------------------------------------------------------------------
  17. #
  18.  
  19. if {[info procs test] != "test"} then {source testlib.tcl}
  20. eval $SAVED_UNKNOWN
  21.  
  22. Test assign_fields-1.1 {assign_fields command} {
  23.     assign_fields "a b {c d} e" alpha beta gamma delta epsilon
  24.     list $alpha $beta $gamma $delta $epsilon
  25. } 0 "a b {c d} e {}"
  26.  
  27. Test assign_fields-1.2 {assign_fields command} {
  28.     set l {}
  29.     set v {}
  30.     eval assign_fields \$l $v
  31. } 0 {}
  32.  
  33. rename unknown {}
  34.  
  35.